{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/mmgrid/mmGrid.css?v={$v}" />
{/block}
{block name="js"}
<script src="__STATIC__/plugins/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
<script src="__ADMIN__/users/account.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div id='alertTips' class='alert alert-success alert-tips fade in'>
  <div id='headTip' class='head'><i class='fa fa-lightbulb-o'></i>操作说明</div>
  <ul class='body'>
      <li>本功能主要用于管理会员（商家）的账号信息，您可以通过各种条件查询会员账号。</li>
  </ul>
</div>
<div class="wst-toolbar">
	<form>
  <div id="query">
        <input type="text" name="loginName1" placeholder='账号/店铺名称'  id="loginName1" class="query" />
        <select name="userType1" id="userType1" class="query">
          <option value="">会员类型</option>
          <option value="0">普通会员</option>
          <option value="1">商家</option>
        </select>
        <select name="userStatus1" id="userStatus1" class="query">
          <option value="">账号状态</option>  
          <option value="1">启用</option>  
          <option value="0">停用</option>  
        </select>
        <button type="button"  class='btn btn-primary btn-mright' onclick="javascript:accountQuery()" ><i class="fa fa-search"></i>查询</button>
  </div>
  </form>
   <div style="clear:both"></div>
</div>
<form autocomplete="off" class='layui-form wst-grid' lay-filter='gridForm'>
<div id="mmg" class="mmg"></div>
</form>
<div id="pg" style="text-align: right;"></div>
<div id='accountBox' style='display:none'>
    <form id='accountForm' autocomplete="off" class='layui-form'>
    <table class='wst-form wst-box-top'>
       <tr>
          <th width='100'>账号<font color='red'>*</font>：</th>
          <td height='30'>
            <input type="hidden" name="userId" id="userId"> 
           	<div id="loginName"></div>
            </td>
       </tr>
       <tr>
          <th>密码<font color='red'>*</font>：</th>
          <td><input type='password' id='loginPwd' data-rule="length[6~20];" placeholder="为空则说明不修改密码" class='ipt' maxLength='20'/></td>
       </tr>
       <tr>
          <th>会员状态<font color='red'>*</font>：</th>
          <td height='30'>
          		<input type="checkbox" class='ipt'  value='1' name="userStatus" id="userStatus" lay-skin="switch" lay-text="启用|停用">
          </td>
          
       </tr>
    </table>
    </form>
  </div>
<script>
  $(function(){
    initGrid({$p})

  });
</script>

{/block}
